From: Ian Campbell Date: Fri, 10 Sep 2010 17:44:09 +0000 (+0100) Subject: xl: remove another string literal from config struct X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11517 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=28f32f5c3cc9ac94dbabc92247406f7cf961adad;p=xen.git xl: remove another string literal from config struct Broken by 22124:098790dd9327 "xl: use xlu_cfg_replace_string in a few more places" [ Identical patch submitted by both Ian C and Gianni ] Signed-off-by: Ian Campbell Signed-off-by: Gianni Tedesco Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 1259cd159c..c8df350be9 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -274,7 +274,7 @@ static void init_build_info(libxl_domain_build_info *b_info, libxl_domain_create if (c_info->hvm) { b_info->shadow_memkb = 0; /* Set later */ b_info->video_memkb = 8 * 1024; - b_info->kernel.path = "hvmloader"; + b_info->kernel.path = strdup("hvmloader"); b_info->hvm = 1; b_info->u.hvm.pae = 1; b_info->u.hvm.apic = 1;